import { constantRoutes } from '@/router/index.js'
const state = {
  menuList: [...constantRoutes]
}

// 修改状态
const mutations = {
  // 设置token
  setMenuList(state, asyncMenuList) {
    state.menuList = [...constantRoutes, ...asyncMenuList]
  }
}

export default {
  namespaced: true,
  state,
  mutations
}

